using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

[CreateAssetMenu(menuName = "SOInstance/Event/TimeEvent")]
public class TimeEventSO : ScriptableObject
{
    public UnityAction<float, GameObject> OnEventRaised;

    public void RaiseEvent(float t, GameObject obj)
    {
        OnEventRaised?.Invoke(t, obj);
    }
}